package RandomNumber;

import java.util.HashSet;
import java.util.Random;
import java.util.Set;

public class RandomNumber {
    public static void main(String[] args) {
        Set<Integer> set=new HashSet<Integer>();
        Random r=new Random();
        while(set.size()<10){
            int number = r.nextInt(20) + 1;
            set.add(number);

        }
        for(Integer s:set){
            System.out.println(s);
        }
    }
}
